<?php include "../../layout/header.php"; ?>
<script type="text/javascript" src="<?php echo($siteroot);?>js/community/ranking.js"></script>
<link rel="stylesheet" href="<?php echo($siteroot);?>css/community.css" type="text/css" />
<?php include "../../layout/navleft.php"; ?>
<?php
if(isset($unserializedUser)){
	$user_id = $unserializedUser->getUid();
}else{
	$user_id = 0;
}
?>
<div id="content_small">
    <div class="container_brown">
    	<div class="container_brown_title">Ranking</div>
    	<br>
    	<div class="community_div">
    		<span>Order by: </span>
    		<select id="ranking_select" onchange="loadRank(<?php echo($user_id);?>)">
	            <option value="gold">Gold</option>
	            <option value="level">Level</option>
	            <option value="qcreated">Created Questions</option>
	            <option value="bugkills">Bug Kill</option>
	        </select>
	        <br><br>
	        <div>
	        	<?php include "rank_table.php";?>
	        </div>
    	</div>
    </div>
</div>
<?php include "../../layout/navright.php"; ?>
<?php include "../../layout/footer.php"; ?>